import { createApp } from 'vue'
import App from './App.vue'
import router from './router'; // 导入路由配置
import axios from './axios' // 导入配置好的axios实例
import { createPinia } from 'pinia'
const pinia = createPinia()
import { persistPlugin } from './stores/persist'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/icons/iconfont2.js'

pinia.use(persistPlugin)
const app = createApp(App);
// 使用路由插件
app.use(ElementPlus);
app.use(router);
app.use(pinia);
app.config.globalProperties.$http = axios
 app.mount('#app');

 /*createApp(App).use(router).use(pinia).mount('#app')
*/